package com.explorati.design_pattern.comparson.creational.abstractfactory;

public class Client {

	public static void main(String[] args) {
		System.out.println("==========成年工厂============");
		HeroFactory adultFactory = new AdultFactory();
		ISuperMan adultSuperMan = adultFactory.createSuperMan();
		adultSuperMan.specialTalent();
		ISpiderMan adultSpiderMan = adultFactory.createSpiderMan();
		adultSpiderMan.launchSilk();

		System.out.println("==========未成年工厂============");
		HeroFactory childFactory = new ChildFactory();
		ISuperMan childISuperMan = childFactory.createSuperMan();
		adultSuperMan.specialTalent();
		ISpiderMan childISpiderMan = childFactory.createSpiderMan();
		adultSpiderMan.launchSilk();
	}
}
